import React from 'react'
import {BrowserRouter as Router,Routes,Route} from "react-router-dom";
import Main from "../pages/Main";
import imgUrl from "../assets/imgs/welcome.gif"
import Menu from "../pages/Setting/Menu/Seeting";
import UserPage from  "../pages/Setting/User/User";
import LoginPage from "../pages/Login/Login";
import ProductPage from "../pages/Business/Product/Product";
import OverViewPage from "../pages/Business/OverView/OverView";
export default (
    <Router>
        <Routes>
            <Route path='/login' element={<LoginPage/>}/>
            <Route path='/' element={<Main/>}>
                <Route index element={<img src={imgUrl} style={{width: "100%"}} alt="Welcome" />}/>
                <Route path='/setting/menu' element={<Menu/>}/>
                <Route path='/setting/user' element={<UserPage/>}/>
                <Route path='/business/Product' element={<ProductPage/>}/>
                <Route path='/business/overview' element={<OverViewPage/>}/>
            </Route>
        </Routes>
    </Router>
)
